package com.bite.storage.service;

import io.seata.rm.tcc.api.BusinessActionContext;


public interface StorageTccService {
    //@TwoPhaseBusinessAction(name = "storageDeduct", commitMethod = "commit", rollbackMethod = "rollback")
    void deduct(String commodityCode, Integer count);
    boolean confirm(BusinessActionContext context);
    boolean cancel(BusinessActionContext context);
}